﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Skynet.WebAdministracion.Views.ExamResultMgm;
using Microsoft.Practices.Unity;

namespace Skynet.WebSite.Evaluation
{
    public partial class ExamResultMgm : Infrastructure.Web.Views.Page, IExamResultMgmView
    {

        private ExamResultMgmPresenter _Presenter;
        [Dependency]
        public ExamResultMgmPresenter Presenter
        {
            get { return _Presenter; }
            set
            {
                _Presenter = value;
                this._Presenter.View = this;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.odsExamByCustomer.ObjectCreating += delegate(object ocds, ObjectDataSourceEventArgs args) { args.ObjectInstance = this.Presenter; };
            if (!Page.IsPostBack)
                this.Presenter.OnViewInitialized();
            this.Presenter.OnViewLoaded();            
        }
    }
}